//
//  TicketTableViewCell.m
//  WBBaseProject
//
//  Created by xiaozhi on 2018/3/23.
//  Copyright © 2018年 吴斌. All rights reserved.
//

#import "TicketTableViewCell.h"

@implementation TicketTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}
- (void)setType:(TicketType)Type
{
    _Type = Type;
    switch (self.Type) {
        case add:
        {
            self.BgIma.image = [UIImage imageNamed:@"加息券-1"];
            
            break;
        }
        case used:
        {
            self.BgIma.image = [UIImage imageNamed:@"抵用券1"];
            break;
        }
        case expire:
        {
            self.BgIma.image = [UIImage imageNamed:@"失效券1"];
            self.ExpireIma.hidden = NO;
            break;
        }
        default:
            break;
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
